powered by
Convert bn and bn.fit objects to graphNEL and graphAM objects and vice versa.
bn
bn.fit
graphNEL
graphAM
# S3 method for graphNEL as.bn(x) # S3 method for graphAM as.bn(x) # S3 method for bn as.graphNEL(x) # S3 method for bn.fit as.graphNEL(x) # S3 method for bn as.graphAM(x) # S3 method for bn.fit as.graphAM(x)
an object of class bn, bn.fit, graphNEL, graphAM.
An object of the relevant class.
library(graph) a = bn.fit(hc(learning.test), learning.test) b = as.graphNEL(a) c = as.bn(b)
Run the code above in your browser using DataLab